<template>
    <div class="activtiy">
        <div class="title">
            <img class="back" src="../../assets/Fill 1@2.88x.png" alt="" @click="backs">
            {{navtitle}}
        </div>
        <div class="content">
            <div class="con-up">
                <img class="up-right" src="../../assets/image/ic_search_no_data.png" alt="">
                <p class="up-left">暂无活动</p>
            </div>
            <!-- <div class="con-down">
                <p class="do-left">活动管理</p>
                <img class="do-right" src="../../assets/image/ic_next_grayArrow.png" alt="">
            </div> -->
        </div>
    </div>
</template>

<script>
import axios from 'axios'
export default {
    name:'activtiy',
    data(){
        return{
            navtitle:'团长招募',
            result:''
        }
    },
    methods:{
        backs(){
            this.$router.back(-1)
        },
        
        getAxios(){
            axios.post('https://web-gateway.newbeescm.com/ms-web/groupBuy/app/getAppGroupBuyActivityList?merchantId=14948&pageSize=10&pageIndex=1',{
                merchantId:14948,
                pageSize:10,
                pageIndex:1,
                headers:{
                    token: this.$store.state.token,
                    userId: this.$store.state.userInfo.id
                },
            },{}).then(res=>{
                console.log(res);
                if (res.data.status.statusCode === 0) {
                    this.result = res.data.result;
                }
            }).catch(err=>{
                console.log(err)
            })
        }
    },
    created(){
        this.$nextTick(()=>{
            this.getAxios()
        })
    }
}
</script>

<style lang="scss" scoped>
.activtiy{
    width: 100%;
    height: 100%;
    .title{
        height: 0.435rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        color: #030303;
        font-size: 0.18rem;
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 999;
        .back{
            position: absolute;
            left:0.14rem;
            bottom: 0.1rem; 
            width: 0.1rem;
            height: 0.18rem;
        }
        &::after{
            content: "";
            position: absolute;
            width: 100%;
            left: 0;
            bottom: 0;
            background: #ccc;
            height: 1px;
            transform:scale(1,0.5) 
        }
    }
    .content{
        width: 100%;
        .con-up{
            width: 100%;
            height: 6.22rem;
            background: #ccc;
            display: flex;
            justify-content: center;
            flex-direction: column;
            align-items: center;
            padding: 0 0.14rem;
            box-sizing: border-box;
            .up-left{
                font-size: 0.12rem;
                color: #333;
            }
            .up-right{
                width: 1.4rem;
                height: 0.8rem;
            }
        }
        // .con-down{
        //     width: 100%;
        //     height: 0.44rem;
        //     display: flex;
        //     justify-content: space-between;
        //     align-items: center;
        //     padding: 0 0.14rem;
        //     box-sizing: border-box;
        //     position: relative;
        //     .do-left{
        //         font-size: 0.12rem;
        //         color: #333;
        //     }
        //     .do-right{
        //         position: absolute;
        //         right: 0.14rem;
        //         top: 0.15rem; 
        //         width: 0.075rem;
        //         height: 0.12rem;
        //     }
        // }
    }
}
</style>
